package com.hsg.creature;


import com.hsg.transport.*;

import java.util.concurrent.TransferQueue;

/**
 * @description:
 * @author: wmt
 * @date: Created in 2020/4/3 16:36
 * @version: v1.0
 * @modified By:
 */
public class Person {
    private String id;  //实例化的时候，做为对象的唯一标识
    private String P_Name;
    private int P_Age;
    private String P_Sex;
    //9种驾驶交通工具的方法,driveTransport里的参数应该是交通工具
    public void driveTransport(Aircraft aircraft){
        System.out.println("driving aircraft "+aircraft.getId());
    }
    public void driveTransport(Airship airship){
        System.out.println("driving airship "+airship.getId());
    }
    public void driveTransport(Automobile automobile){
        System.out.println("driving automobile "+automobile.getId());
    }
    public void driveTransport(Bicycle bicycle){
        System.out.println("driving bicycle "+bicycle.getId());
    }
    public void driveTransport(HotAirBalloon hotAirBalloon){
        System.out.println("driving hotAirBalloon "+hotAirBalloon.getId());
    }
    public void driveTransport(Hovercraft hovercraft){
        System.out.println("driving hovercraft "+hovercraft.getId());
    }
    public void driveTransport(Motorcycle motorcycle){
        System.out.println("driving motorcycle "+motorcycle.getId());
    }
    public void driveTransport(Ship ship){
        System.out.println("driving ship "+ship.getId());
    }
    public void driveTransport(Submarine submarine){
        System.out.println("driving submarine "+submarine.getId());
    }
    public void driveTransport(Train train){
        System.out.println("driving train "+train.getId());
    }

    public Person(){

    }
    public Person(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_Name() {
        return P_Name;
    }

    public void setP_Name(String p_Name) {
        P_Name = p_Name;
    }

    public int getP_Age() {
        return P_Age;
    }

    public void setP_Age(int p_Age) {
        P_Age = p_Age;
    }

    public String getP_Sex() {
        return P_Sex;
    }

    public void setP_Sex(String p_Sex) {
        P_Sex = p_Sex;
    }
}
